/*
 * $Id: TaskFilterResults.java,v 1.1 2009/05/27 16:11:31 oliver Exp $
 * 
 * Copyright (C) 2006 General Electric Company. All Rights Reserved.
 * 
 * This software is the confidential and proprietary information of the General
 * Electric Company (GE). You shall not disclose this software and shall use it
 * only in accordance with the terms of the license agreement you entered into
 * with GE.
 * 
 * GE MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
 * SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR
 * NON-INFRINGEMENT. GE SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE
 * AS A RESULT OF USING, MODIFYING, OR DISTRIBUTING THIS SOFTWARE OR ITS
 * DERIVATIVES.
 */
package com.ge.healthcare.autosc.processor.dispatcher.tasks.filter;

public class TaskFilterResults {
	private StringBuffer msg;
	private boolean isEnabled;

	public TaskFilterResults(String msg) {
		this.msg = new StringBuffer(msg);
		isEnabled = false;
	}

	public void append(String text) {
		this.msg.append(text);
	}

	public void append(StringBuffer text) {
		this.msg.append(text);
	}

	/**
	 * @return the msg
	 */
	public StringBuffer getMsg() {
		return msg;
	}

	/**
	 * @param msg
	 *            the msg to set
	 */
	public void setMsg(StringBuffer msg) {
		this.msg = msg;
	}

	/**
	 * @return the isEnabled
	 */
	public boolean isEnabled() {
		return isEnabled;
	}

	/**
	 * @param isEnabled
	 *            the isEnabled to set
	 */
	public void setEnabled(boolean isEnabled) {
		this.isEnabled = isEnabled;
	}

	/**
	 * @param setEnabled
	 *            the isEnabled to set true
	 */
	public void setEnabled() {
		this.isEnabled = true;
	}

	/**
	 * @param setDisabled
	 *            the isEnabled to set false
	 */
	public void setDisabled() {
		this.isEnabled = false;
	}

	public String toString() {
		StringBuffer msg = new StringBuffer("EnabledResults: ");
		msg.append(" isEnabled: ").append(this.isEnabled());
		msg.append(" Msg: ").append(this.getMsg());
		return msg.toString();
	}
}
